package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yun
 * @since 2019-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WebConfiguration对象", description="")
public class WebConfiguration implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "key")
    @TableField("config_key")
    private String configKey;

    @ApiModelProperty(value = "版本,从1开始的数字")
    @TableField("version")
    private Integer version;

    @ApiModelProperty(value = "value")
    @TableField("config_value")
    private String configValue;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "是否启用，0未启用,1启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建日期")
    @TableField("gmt_create")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新日期")
    @TableField("gmt_modified")
    private Date gmtModified;


    public static final String ID = "id";

    public static final String CONFIG_KEY = "config_key";

    public static final String VERSION = "version";

    public static final String CONFIG_VALUE = "config_value";

    public static final String REMARK = "remark";

    public static final String STATUS = "status";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

}
